<table class="table table-striped table-bordered table-hover">
    <thead>
    <tr>
        <th>序号</th>
        <th>昵称</th>
        <th>openid</th>
        <th>变动前积分</th>
        <th>变动积分</th>
        <th>变动后积分</th>
        <th>状态</th>
        <th>备注</th>
        <th>动作</th>
        <th>创建日期</th>
    </tr>
    </thead>
    <tbody class="page-point-list">
        @if(count($points)>0)
            @foreach ($points as $item)
                <tr>
                    <td>{{$item->id}}</td>
                    <td>{{$item->user->nick_name}}</td>
                    <td>{{$item->openid}}</td>
                    <td>{{$item->before_bonus}}</td>
                    <td>{{$item->change_bonus}}</td>
                    <td>{{$item->after_bonus}}</td>
                    <td>
                        @if($item->type==1)
                            收入
                        @else
                            支出
                        @endif
                    </td>

                    <td>{{$item->remark}}</td>
                    <td>{{$item->action}}</td>
                    <td>{{$item->created_at}}</td>
                </tr>
            @endforeach
        @endif
    </tbody>
</table>